﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
    public partial class studentForm : Form
    {
        public WindowsFormsApplication2.Form1.student newStudent;
        public studentForm(WindowsFormsApplication2.Form1.student s)
        {
            newStudent = s;
            InitializeComponent();
        }

        private void studentForm_Load(object sender, EventArgs e)
        {
            id_txt.Text = newStudent.id.ToString();
            name_txt.Text = newStudent.name;
            password_txt.Text = newStudent.password;
            ssn_txt.Text = newStudent.ssn;
            status_txt.Text = newStudent.status;
            account_txt.Text = newStudent.account;
            email_txt.Text = newStudent.email;
            admin_txt.Text = newStudent.isadmin.ToString();
        }

        private void ok_btn_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
